<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="nl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<title>Untitled</title>

<script src="mootools-1.2.3-core.js" type="text/javascript"></script>
<script src="iFrameFormRequest.js" type="text/javascript"></script>

<script type="text/javascript">
	
window.addEvent('domready',function(){
	
	var iFrame = new iFrameFormRequest(document.getElement('form'),{
		onRequest: function(){
			document.id('debug').set('text','start');
		},
		onComplete: function(response){
			document.id('debug').set('html',response);
		}
	});
	document.id(iFrame).setStyle('display','block');
	
});
	
</script>

</head>
<body>

<form action="upload.php" method="post" enctype="multipart/form-data">
	
	<input type="file" name="file" />
	
	<input type="submit" value="uploadAjax" />
	
</form>

<div id="debug"></div>

</body>
</html>
